package com.rybbaby.tss.front.tssMealFee.service;


import com.rybbaby.tss.core.web.service.IBaseService;
import com.rybbaby.tss.front.tssMealFee.entity.TssMealFee;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @description 订金表数据库操作服务接口
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-09 下午11:56:55
 */
public interface ITssMealFeeService extends IBaseService<TssMealFee> {

    TssMealFee findByStuId(String stuId)throws Exception;

    void updateTssMealFee(TssMealFee tssMealFee);

    Serializable saveTssMealFee(TssMealFee tssMealFee);

    /**
     * 扣除餐点费
     * @param tssMealFee
     */
    boolean deductionDayMealFee(TssMealFee tssMealFee);

    /**
     * 加餐点费
     * @param tssMealFee
     * @return
     */
    boolean plusDayMealFee(TssMealFee tssMealFee);

    /**
     * 批量扣除餐点费
     * @param packageInformation
     * @return
     */
    boolean batchDeductionDayMealFee(List<Map<String, Object>> packageInformation);
}
